<?  $sess = new Zend_Session_Namespace(CLU_NS);?>
<div class="box white_bg">

<form action="" method="POST" id="bulkForm">
<table id="roleList" border="1">
<tr style="background-color:#EEEEEE">
    <td><b> User Name</b> </td>
    <td><b> Type</b> </td>
    <td><b>Status</b></td>
    <td><b>Roles</b></td>
    <td><b>Upgrade To</b></td>
    <td> <b>Operator</b> </td>
</tr>
<?foreach ($this->viewParams['results'] as $val) :?>
  <tr>
    <td width="15%"> 
        <span><?= $val['name']?></span>
        <span id="<?=$val['id']?>"></span>
    </td>
    <td width="15%"><?if($val['type'] == 1) :?> 
    					<?=t(424)?>
    				<?elseif($val['type'] == 2) :?>
    					<?=t(425)?>
    				<?endif?>
    </td>
	<td width="20%">
		<?if($val['status'] == 0) :?>
			<?=t(486)?>
		<?elseif($val['status'] == 1) :?>
			<?=t(487)?>
		<?elseif($val['status'] == 2) :?>
			<?=t(488)?>
		<?elseif($val['status'] == 3) :?>
			<?=t(489)?>
		<?elseif($val['status'] == 4) :?>
			<?=t(490)?>
		<?endif?>
	</td>
	<td width="30%"><?=$this->viewParams['roles'][$val['id']]?></td>
	<td width="20%">
		<?if($val['upgrade_to'] == 5) :?>
			<?=t(486)?>
		<?elseif($val['upgrade_to'] == 1) :?>
			<?=t(487)?>
		<?elseif($val['upgrade_to'] == 2) :?>
			<?=t(488)?>
		<?elseif($val['upgrade_to'] == 3) :?>
			<?=t(489)?>
		<?elseif($val['upgrade_to'] == 4) :?>
			<?=t(490)?>
		<?endif?>
	</td>
	<td width="30%">
		<a href="/<?=$sess->viewLang?>/user/account/activate-role-for-user-company?id=<?=$val['id']?>&upgrade_to=<?=$val['upgrade_to']?>&type=<?=$val['type']?>&status=<?=$val['status']?>">Activate</a>
        | <a href="/<?=$sess->viewLang?>/user/account/activate-role-for-user-company?id=<?=$val['id']?>&type=unactivate"><?=t(486)?></a>
	</td>
  </tr>
<?endforeach?>
</table>
</form>

</div>